let messageInstance;
const resetMessage = (options) => {
  if (messageInstance) {
    messageInstance.close()
  }
  messageInstance = ElMessage.error(options)
}
 
export const Message = resetMessage